# 定义装饰器
def logger(func):
    def inner(a, b):
        func(a, b)

    return inner


# 装饰函数
@logger
def sum_num(a, b):
    print(a + b)


sum_num(1, 2)
